package com.wangzefeng.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 登陆日志表
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-18
 */
public class SysLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "login_log_id", type = IdType.AUTO)
    private Integer loginLogId;

    /**
     * 权限名称
     */
    private String menuName;

    /**
     * 登陆用户id
     */
    private Integer userId;

    /**
     * 登陆用户账号
     */
    private String userAccount;

    /**
     * 登陆用户昵称
     */
    private String userName;

    /**
     * 登陆角色id
     */
    private Integer roleId;

    /**
     * 登陆角色
     */
    private String roleName;

    /**
     * 登陆ip
     */
    private String loginIp;

    /**
     * 登陆时间
     */
    private Date loginDate;

    /**
     * 退出时间
     */
    private Date logoutDate;


    public Integer getLoginLogId() {
        return loginLogId;
    }

    public void setLoginLogId(Integer loginLogId) {
        this.loginLogId = loginLogId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public Date getLogoutDate() {
        return logoutDate;
    }

    public void setLogoutDate(Date logoutDate) {
        this.logoutDate = logoutDate;
    }

    @Override
    public String toString() {
        return "SysLoginLog{" +
        "loginLogId=" + loginLogId +
        ", menuName=" + menuName +
        ", userId=" + userId +
        ", userAccount=" + userAccount +
        ", userName=" + userName +
        ", roleId=" + roleId +
        ", roleName=" + roleName +
        ", loginIp=" + loginIp +
        ", loginDate=" + loginDate +
        ", logoutDate=" + logoutDate +
        "}";
    }
}
